package com.icw.decoupling.defi.proxy;

import java.util.Map;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import com.icw.basis.BasePoEntity;

public interface RestfulMgrProxy {

	<T extends BasePoEntity> void getone(Class<T> entityClass, Map<String, Object> params, HttpServletRequest request, HttpServletResponse response, Map<String, Object> data) throws Exception;

	<T extends BasePoEntity> void getlist(Class<T> entityClass, Map<String, Object> params, HttpServletRequest request, HttpServletResponse response, Map<String, Object> data) throws Exception;

	<T extends BasePoEntity> void post(Class<T> entityClass, Map<String, Object> params, HttpServletRequest request, HttpServletResponse response, Map<String, Object> data) throws Exception;

	<T extends BasePoEntity> void patch(Class<T> entityClass, Map<String, Object> params, HttpServletRequest request, HttpServletResponse response, Map<String, Object> data) throws Exception;

	<T extends BasePoEntity> void delete(Class<T> entityClass, Map<String, Object> params, HttpServletRequest request, HttpServletResponse response, Map<String, Object> datad) throws Exception;

	<T extends BasePoEntity> void getexcel(Class<T> entityClass, Map<String, Object> params, HttpServletRequest request, HttpServletResponse response, Map<String, Object> data) throws Exception;

	<T extends BasePoEntity> void exists(Class<T> entityClass, Map<String, Object> params, HttpServletRequest request, HttpServletResponse response, Map<String, Object> data) throws Exception;
}
